{% extends "base.html" %}
{% block head %}
<title>{{item["title"]}} - 咩乐购物!</title>
{% end %}
<!-- content -->
{% block content %}
<div class="item_info clearfix">
<a href="/">咩乐首页</a> > {{item["title"]}}
<div class="title mb10 mt10">
<span class="left"><h1>{{item["title"]}}</h1></span>  
<span class="left" style="margin-left:20px;">
	<!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_b" style="line-height: 12px;"><img src="http://bdimg.share.baidu.com/static/images/type-button-1.jpg" />
		<a class="shareCount"></a>
	</div>
<script type="text/javascript" id="bdshare_js" data="type=button&amp;uid=359065" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
	document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
</script>
<!-- Baidu Button END -->
</span>  

</div>
<div id="main_content" class="left">
	<p class="pic1"><img src="{{item["pic_url"]}}_480x480.jpg"/></p>

	<div class="clearfix mt20">
	<h2>喜欢此宝贝的人也喜欢</h2>
	<div class="clearfix mt10" id="waterfall">
<div id="col1" class="col clearfix">
{% for val in  items[0:3]%}
{% module Item(val)%}
{% end %}
</div>

<div id="col2" class="col clearfix">
{% for val in  items[3:6]%}
{% module Item(val)%}
{% end %}
</div>
<div id="col3" class="col clearfix">
{% for val in  items[6:9]%}
{% module Item(val)%}
{% end %}
</div>

</div>
</div><!-- end like-->

</div>
	<div id="main_side" class="left">
	<div class="buy mt10" style="width:200px;">
		<ul>
				<li class="add2px">价格：<em>￥{{ item['price'][0]}}.</em><b>{{ item['price'][1]}}</b></li>
				<li>宝贝类型：<span>全新</span>月销售：<i>{{ item['volume']}}件</i></li>

				<li class="li-m">来源：<i>{% if item['click_url'] %}<a href="{{ item['click_url']}}"  target="_blank">淘宝 {{item['nick']}}</a>{% else %}  <a href="http://item.taobao.com/item.htm?id={{item["num_iid"]}}" target="_blank">{{item['nick']}}</a>{% end %} </i></li>
				<li class="li-m"><input type="button" value="前去购买" class="buy-button" onclick="window.open('{% if item['click_url'] %}{{ item['click_url']}}{% else %}http://item.taobao.com/item.htm?id={{item["num_iid"]}}{% end %}')"></li>
			</ul>
	</div>
</div>
</div>
{% end %}